//
//  Shape.h
//  享元模式
//
//  Created by flannery on 2018/12/18.
//  Copyright © 2018年 flannery. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol Shape <NSObject>
-(void)draw;
@end

@interface Circle : NSObject <Shape>
@property (nonatomic, strong) NSString *color;
@property (nonatomic, assign) int x;
@property (nonatomic, assign) int y;
@property (nonatomic, assign) int radius;

-(instancetype)initWithColor:(NSString*)color;
@end
